<include file="Public:header" />
<div class="outside sign">
    <div class="inner">

        <!-- 用户注册 -->
        <div class="title">
            用户注册
            <span>
      已注册？现在就
      <a href="__URL__login">登录</a>
    </span>
        </div>
        <div class="main">
            <form id="form1" name="form1" method="post" action="__URL__user_register" class="form-validate">
                <table width="100%">
                    <tr>
                        <td class="right" width="30%">邮箱：</td>
                        <td colspan="2">
                            <input type="text" name="email" id="email" class="form-control required email" placeholder="邮箱地址，将做为帐户登入"/>  <div id="check_email" ></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="30%">请设置密码：</td>
                        <td colspan="2">
                            <input type="password" name="password" id="password" class="form-control required" placeholder="请输入密码" />
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="30%">请确认密码：</td>
                        <td  colspan="2">
                            <input type="password" name="confirm" id="confirm" class="form-control required"  placeholder="请确认密码" />
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="30%">手机号码：</td>
                        <td>
                            <input type="text" name="mobile" placeholder="请输入手机号码"/>
                        </td>
                        
                    </tr>
                    
                    <!-- tr>
                        <td></td>
                        <td colspan="2">
                            <label>
                                <input class="member" type="checkbox" name="checkbox2" value="checkbox" />
                                我已阅读并同意
                                <a href="#">《服务声明及注册协议》</a>
                            </label>
                        </td>
                    </tr-->
                    <tr>
                        <td class="right" width="30%">&nbsp;</td>
                        <td colspan="2">
                            <input class="submit" type="submit" name="Submit322222" value="提交" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <!-- /用户注册 -->	</div>
<script src="__PUBLIC__/js/jquery.validate.min.js"></script>
 <script language="javascript">
        jQuery.extend(jQuery.validator.messages, {
        	  required: "必选字段",
        	  remote: "请修正该字段",
        	  email: "请输入正确格式的电子邮件",
        	  url: "请输入合法的网址",
        	  date: "请输入合法的日期",
        	  dateISO: "请输入合法的日期 (ISO).",
        	  number: "请输入合法的数字",
        	  digits: "只能输入整数",
        	  creditcard: "请输入合法的信用卡号",
        	  equalTo: "请再次输入相同的值",
        	  accept: "请输入拥有合法后缀名的字符串",
        	  maxlength: jQuery.validator.format("请输入一个 长度最多是 {0} 的字符串"),
        	  minlength: jQuery.validator.format("请输入一个 长度最少是 {0} 的字符串"),
        	  rangelength: jQuery.validator.format("请输入 一个长度介于 {0} 和 {1} 之间的字符串"),
        	  range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
        	  max: jQuery.validator.format("请输入一个最大为{0} 的值"),
        	  min: jQuery.validator.format("请输入一个最小为{0} 的值")
        	});
        
          $("#email").change(function(){
        	 email = $(this).val();
        	 $.ajax({url:'__URL__check_email',
        		     type:'POST',
        		     data:'email='+email,
        		     dataType:'html',
        		     success:function(data){
        		    	$("#check_email").html(data);
        		     } 
        	 });
          });
          
          $(".form-validate").validate({
              errorPlacement: function(error, element)
              {
                  error.insertAfter(element);
              }
          });
        </script>
</div>

<include file="Public:footer2" />